const fs = require('fs');
const path = require('path');
const filterList = ['.json', '.html'];
// 读取fonts目录下的ttf文件
const fontPath = path.join(__dirname, 'src/assets/fonts');
const assets = fs.existsSync(fontPath)
  ? fs
      .readdirSync(fontPath)
      .filter(file => !filterList.some(ext => file.includes(ext)))
      .map(file => `./src/assets/fonts/${file}`)
  : [];

module.exports = {
  assets,
};